Now we need Hedgey to be able to turn and move.

  • Go to . Drag the Left Key and Right Key events into your program.
  • Delete the default commands inside both events.
  • Go to and drag Turn Left into the left_key() event. Change the parameter to 20.
  • From , drag Turn Right into the right_key() event. Change the parameter to 20.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("moon") sprite = codesters.Sprite("hedgehog") sprite.go_to(0, -210)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)